package com.sk.sourcecircle.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sk on 2017/12/29.
 */

public class MyCity implements Parcelable {

    private String city_id;
    private String city_name;
    private String pinyin;

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getCity_id() {
        return city_id;
    }

    public void setCity_id(String city_id) {
        this.city_id = city_id;
    }

    public String getCity_name() {
        return city_name;
    }

    public void setCity_name(String city_name) {
        this.city_name = city_name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.city_id);
        dest.writeString(this.city_name);
        dest.writeString(this.pinyin);
    }

    public MyCity() {
    }

    protected MyCity(Parcel in) {
        this.city_id = in.readString();
        this.city_name = in.readString();
        this.pinyin = in.readString();
    }

    public static final Parcelable.Creator<MyCity> CREATOR = new Parcelable.Creator<MyCity>() {
        @Override
        public MyCity createFromParcel(Parcel source) {
            return new MyCity(source);
        }

        @Override
        public MyCity[] newArray(int size) {
            return new MyCity[size];
        }
    };
}
